package cn.chiship.bs.api;

import cn.chiship.bs.api.core.util.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author lj
 */
@MapperScan(basePackages = {
        "cn.chiship.bs.api.biz.**.mapper"
})
@ComponentScan(basePackages = {"cn.chiship"})
@EnableWebMvc
@SpringBootApplication
public class ChishipBsApiApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(ChishipBsApiApplication.class, args);
            SpringContextUtil.printRunningInfo();
            System.out.println("###################### ChishipBsApiApplication Finish ######################");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
